<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="format-detection" content="telephoto=no" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
	<title>喜悦之星照片墙</title>
	<link rel="stylesheet" href="./css/app.css?2343w4w3erfesfw">
	<script src="./lib/flexible.js"></script>
	<script src="./lib/resLoader.js"></script>
	<script src="./lib/jquery-1.8.3.min.js"></script>
	<script src="./lib/vue.js"></script>
	<script src="./lib/vue-resource.min.js"></script>
	<script src="./lib/vue-lazyload.js"></script>
</head>
<body>
<div id="app">
	<div class="loading" v-if="!initLoaded">
		<div class="loading-icon">
			<div></div>
			<div></div>
		</div>
	</div>
	<div class="start-page" v-if="startPage">
		<div class="header after-clear">
			<div class="logo float-left"><img src="imgs/logo.png" alt=""></div>
			<div class="float-right"><span class="countDown">{{countDown}}s</span></div>
		</div>
		<div class="body">
			<div class="body-content">
				<div class="title animated zoomIn"><img src="imgs/startTitlte.png" alt=""></div>
				<div class="photos">
					<div class="row row1 after-clear">
						<img class="img animated fadeInUp img1" src="imgs/photos_1.jpg" alt="">
						<img class="img animated fadeInUp img2" src="imgs/photos_2.jpg" alt="">
						<img class="img animated fadeInUp img3" src="imgs/photos_3.jpg" alt="">
						<img class="img animated fadeInUp img4" src="imgs/photos_4.jpg" alt="">
						<img class="img animated fadeInUp img5" src="imgs/photos_5.jpg" alt="">
					</div>
					<div class="row row2 after-clear">
						<img class="img animated fadeInUp img6" src="imgs/photos_6.jpg" alt="">
						<img class="img animated fadeInUp img7" src="imgs/photos_7.jpg" alt="">
						<img class="img animated fadeInUp img8" src="imgs/photos_8.jpg" alt="">
						<img class="img animated fadeInUp img9" src="imgs/photos_9.jpg" alt="">
					</div>
					<div class="row row3 after-clear">
						<img class="img animated fadeInUp img10" src="imgs/photos_10.jpg" alt="">
					</div>
				</div>
			</div>
		</div>
		<div class="footer animated fadeInUp"><button class="enter-btn" @click='hideStartPage'>进入相册</button></div>
	</div>
	<div id="album" @scroll="albumScroll">
		<div class="banner img-box">
			<img src="imgs/banner.jpg" alt="">
		</div>
		<div class="topBar animated" 
			:class="{'topBarFixed':topBarFixed,'fadeInDown':topBarFixed}">
			<div class="pageInfo">
				<h1 class="title">阿里巴巴喜悦号体验之旅<span class="line">丨</span><span class="time">2017-06-10</span></h1>
				<p class="totalPages">共 {{total}} 张照片</p>
			</div>
			<div class="button-group">
				<div class="buttons after-clear">
					<button class="filter-btn filter-btn-time float-left"
						:class="{'filter-btn-time-up':isReverse,'filter-btn-active':filterTimeActive}"
						@click="photosort">
						<span>时间排序({{isReverse?'倒序':'顺序'}})<i class="icon"></i></span>
					</button>
					<!-- <button @click="swtichCol">排列({{isCol2?'两列':'三列'}})</button> -->
					<button class="filter-btn filter-btn-filter float-left"
						:class="{'filter-btn-active':!filterTimeActive}"
						@click="filter">
						<span>筛选<i class="icon"></i></span>
					</button>
				</div>
				<ul class="filters after-clear" v-show="filterTagActive">
					<li class="item float-left"
						:class="{'item-active':filteAll}"
						@click="tagFilteraAll">
						全部
						<i class="icon"></i>
					</li>
					<li class="item float-left" 
						v-for="(gallery, key) in galleries"
						:class="{'item-active':gallery.active}"
						@click="tagFilter(key,gallery.id)">
						{{gallery.name}}
						<i class="icon"></i>
					</li>
				</ul>
			</div>
		</div>
		<ul class="photos-gallery after-clear"
			:style="{marginTop:galleryTop+'px'}">
			<li class="item-photo float-left"
				:class="[isCol2?'col-2':'col-3']"
				v-for="(photo, key) in photos"
				v-show="photo.show"
				@click='openCover(key)'
			>
    			<div class="photo" :data-url='photo.thumb_url'
    			v-lazy:background-image="photo.thumb_url"></div>
			</li>
		</ul>
		<div class="photo-loading" v-show="loadingMore">
			<img src="imgs/loading.gif" alt="">
		</div>
		<div class="photo-cover" v-if="coverOpen">
			<button class="close-btn" @click='closeCover'>关闭</button>
			<div class="photo-cover-inner">
			    <img v-lazy="coverImgUrl" alt="">
			</div>
			<p class="footer-text">想要分享到朋友圈？长按图片保存到手机吧</p>
		</div>
	</div>
	<button id="gotoTop" 
		class="animated fadeInUp"
		v-show="showGoTop"
		@click="goTop">
		<img src="imgs/gotoTop.png" alt="">
	</button>
</div>
<script src="js/app.js"></script>
</body>
</html>